package com.liuning.graduationdemo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.entity.Doctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pumpkin
 * @since 2022-04-22
 */
public interface DoctorMapper extends BaseMapper<Doctor> {

    Page<Doctor> findPage(Page<Doctor> page,@Param("nickname") String nickname,@Param("deptId") Integer deptId);

    int updateBookingNumberById(@Param("doctorId") Integer doctorId);
}
